﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysConfig.aspx.cs" Inherits="SysConfig" ValidateRequest="false" %>
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">

    <link href="../50/style.css" rel="stylesheet" />
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/jquery.form.js"></script>
    
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>
   
    <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">  

    <style>
        .imgbox img{max-width:120px;}
    </style>
     <script type="text/javascript">



       $(function () {
   

            var imgurl = document.getElementById("txtImgUrl").value;
            if (imgurl != "")
             {
            $(".imgbox").empty();
            $(".imgbox").css({ background: "none" });
            $(".imgbox").append("<img src=\"" + imgurl + "\" />");
            }
         
            
        });


    </script>

</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal m-t">
  <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            
                   <div class="ibox-title">
                        <h5>系统管理</h5>  
                                  <div class="ibox-tools">
                          
        <a href="SysConfig.aspx" class="btn btn-primary btn-xs"><i class="fa fa-refresh"> &nbsp;&nbsp; 刷 新</i></a>
                         
                      </div>        
            
                    </div>
           

                    <div class="ibox-content">
                       <div class="panel-body">               
                      <div class="form-group">


             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">网站名称：</label>
                       <div class="col-sm-6">
                        <asp:TextBox ID="txtWebName" runat="server" class="form-control" required=""  aria-required="true"  
                              MaxLength="50" HintTitle="系统的名称" HintInfo="给你的系统起个有意义的名字哦，长度不能超过50个字符。"></asp:TextBox>
                       </div>
              </div>



             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">网站LOGO：</label>
                       <div class="col-sm-6">
                            <div class="imgbox"></div>  
                                  
             <asp:TextBox ID="txtImgUrl" runat="server"   style="display:none;"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload')" /></a>
           <a class="uploading">正在上传，请稍候...</a>
                                 (请上传png背景透明图片)
                       </div>
           
              </div>


             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">办公电话：</label>
                       <div class="col-sm-6">
                    <asp:TextBox ID="txtWebTel" runat="server" class="form-control"    size="25" 
            maxlength="50" HintTitle="办公电话号码" HintInfo="格式如：0757-22228888。"></asp:TextBox>
                       </div>
              </div>

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">管理员信箱：</label>
                       <div class="col-sm-6">
                     <asp:TextBox ID="txtWebEmail" runat="server" class="form-control" 
            maxlength="50" HintTitle="网站管理员信箱" HintInfo="方便客户需要咨询时发送邮件。"></asp:TextBox>
                       </div>
              </div>

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">网站备案号：</label>
                       <div class="col-sm-6">
                 <asp:TextBox ID="txtWebCrod" runat="server" class="form-control" 
            maxlength="50" HintTitle="网站备案号码" HintInfo="信息产业部申请的合法TCP/IP备案号。"></asp:TextBox>
                       </div>
              </div>
             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">网站关健字：</label>
                       <div class="col-sm-6">
                     <asp:TextBox ID="txtWebKeywords" runat="server"  class="form-control"   style="width:300px;" maxlength="250" HintTitle="网站关健字" HintInfo="搜索引擎可根据网站设置的关健字，以“,”号分隔开。"></asp:TextBox>
   
                       </div>
              </div>
             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">网站描述：</label>
                       <div class="col-sm-6">
                    <asp:TextBox ID="txtWebDescription" runat="server"  class="form-control"  style="width:300px;height:45px;" maxlength="250" HintTitle="网站描述" HintInfo="搜索引擎可根据网站设置的描述信息，字符小于等于250位字符。" 
            TextMode="MultiLine"></asp:TextBox>
                       </div>
              </div>

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">允许上传附件类型：</label>
                       <div class="col-sm-6">
                  <asp:TextBox ID="Textfuj" runat="server" class="form-control" 
            maxlength="150" HintTitle="允许上传附件类型" HintInfo="用 | 隔开大写 格式如：GIF|JPG|PNG|BMP|RAR|DOC|XLS|TXT"></asp:TextBox>
     
                       </div>
              </div>

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">开启日志：</label>
                       <div class="col-sm-6">
         <asp:CheckBox ID="CBLog" runat="server" CssClass="checkbox-inline i-checks" />
     
                       </div>
              </div>


             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">开启新闻栏目权限：</label>
                       <div class="col-sm-6">
  <asp:CheckBox ID="CBNews" runat="server" CssClass="checkbox-inline i-checks" />
     开启后新闻需要设置权限才能操作
                       </div>
              </div>

               <div class="form-group" style="margin-top: 2em;">
                            <div class="col-sm-8 col-sm-offset-3" style="margin-top: 2em;">
         <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="btn btn-primary" onclick="btnSave_Click" />
  &nbsp;
  <input type="button" class="btn btn-white" id="btnCancel" onclick="myclose();" value="取消" />
                            </div>
             </div>
  

                        </div>
                    </div>
                </div>
            </div>
       
    </div>
        </form>

    
      <!-- 全局js -->
   
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->

                   <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',

            });
        });
    </script>

    <script src="../50/function.js"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">
      
        if (typeof (myError) != "undefined") 
           {
            swal({ title: "出错", text: Msg, type: "error",  html: true, showConfirmButton: false, timer: 5000 });
           };

        if (typeof (success) != "undefined")
        {

            swal({ title: "成功", type: "success", showConfirmButton: false, timer: 2000} );     
        }
        function myclose()
        {
            var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
            parent.layer.close(index); //执行关闭
        }
    
    </script>
 
</body>
</html>
